/**
 * Witontek.com.
 * Copyright (c) 2012-2016 All Rights Reserved.
 */
package test.thread;

/**
 * 
 * @author Long
 * @version $Id: MyRunnableDemo.java, v 0.1 2016年10月31日 下午2:16:27  xiaolong.ma  Exp $
 */
public class MyRunnableDemo {

    /**
     * 
     * @param args
     * @throws InterruptedException 
     */
    public static void main(String[] args) throws InterruptedException {

        for (int i = 0; i < 4; i++) {
            MyRunnable mr = new MyRunnable();
            Thread t = new Thread(mr);
            mr.setName("" + i);
            t.start();
            // t.join();
        }

        System.out.println("main end!");
    }

}
